package com.lizhenhua.orderclose.feiclient;

import com.lizhenhua.fmmall.beans.OrderItem;
import com.lizhenhua.orderclose.follback.QueryOrderItemFollBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
@FeignClient(value = "query-orderitem",fallback = QueryOrderItemFollBack.class)
public interface QueryOrderItemFeignClient {
    @GetMapping("/query/orderitem/{orderId}")
    public List<OrderItem> queryOrderItem(@PathVariable("orderId") String orderId);
}
